<template>
  <div class="home-skeleton">
    <div class="skeleton-item" v-for="i in 4" :key="i">
        <sy-skeleton bg="#e4e4e4" width="306px" height="306px" animated></sy-skeleton>
        <sy-skeleton bg="#e4e4e4" width="160px" height="24px" animated></sy-skeleton>
        <sy-skeleton bg="#e4e4e4" width="120px" height="24px" animated></sy-skeleton>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeSkeleton',
  props: {
    bg: {
      type: String,
      default: '#fff'
    }
  }
}
</script>

<style lang="less" scoped>
.home-skeleton{
    width: 1240px;
    height: 406px;
    display: flex;
    justify-content: space-between;
    .skeleton-item{
        width: 306px;
        .sy-skeleton ~ .sy-skeleton{
            display: block;
            margin: 16px auto 0;
        }
    }
}
</style>
